package com.pattern.builder;

/**
 * @author 冯志立
 * @create 2019-10-22 10:06
 * 传统模式下的建造方式
 */
public abstract class AbstractHouse {
    //打地基
    public abstract void buildBasic();
    //砌墙
    public abstract void buildWalls();
    //封顶
    public abstract void roofed();

    public void build(){
        buildBasic();
        buildWalls();
        roofed();
    }


}
